.class Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;
.super Ljava/lang/Object;
.source "PublishAppActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/PublishAppActivity;->uploadImages(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

.field final synthetic val$picture:Lcom/brixd/niceapp/community/model/PictureModel;

.field final synthetic val$serverPath:Ljava/lang/String;

.field final synthetic val$thumbnailImg:Ljava/io/File;

.field final synthetic val$upToken:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PublishAppActivity;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Lcom/brixd/niceapp/community/model/PictureModel;)V
    .registers 6
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    .prologue
    .line 582
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    iput-object p2, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$upToken:Ljava/lang/String;

    iput-object p3, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$serverPath:Ljava/lang/String;

    iput-object p4, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    iput-object p5, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$picture:Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .prologue
    .line 586
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$upToken:Ljava/lang/String;

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$serverPath:Ljava/lang/String;

    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    if-nez v0, :cond_21

    new-instance v0, Ljava/io/File;

    iget-object v3, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$picture:Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/community/model/PictureModel;->getImageLocalPath()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    :goto_13
    new-instance v3, Lcom/qiniu/io/PutExtra;

    invoke-direct {v3}, Lcom/qiniu/io/PutExtra;-><init>()V

    new-instance v4, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;

    invoke-direct {v4, p0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;-><init>(Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;)V

    invoke-static {v1, v2, v0, v3, v4}, Lcom/qiniu/io/IO;->putFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Lcom/qiniu/io/PutExtra;Lcom/qiniu/auth/JSONObjectRet;)V

    .line 613
    return-void

    .line 586
    :cond_21
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    goto :goto_13
.end method
